package com.liqin.nothing.service.impl;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.liqin.nothing.entity.Person;
import com.liqin.nothing.entity.User;
import com.liqin.nothing.mapper.UserMapper;
import com.liqin.nothing.service.UserService;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * @author 28421
 * @description 针对表【user】的数据库操作Service实现
 * @createDate 2024-01-10 21:59:34
 */
@Service
public class UserServiceImpl extends ServiceImpl<UserMapper, User> implements UserService {

    public UserServiceImpl(UserMapper userMapper) {
        this.userMapper = userMapper;
    }

    private final UserMapper userMapper;

    @Override
    public List<User> getAllUser() {
        return userMapper.selectList(null);
    }

    @Override
    public Person getPerson() {
        return baseMapper.getPerson();
    }
}
